package com.tongtong.stsuserapi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 收款码
 */
@Data
@ApiModel("收款码")
@TableName("collection_code")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CollectionCode implements Serializable {
	private static final long serialVersionUID = -2323425643L;

	@ApiModelProperty("ID主键")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;

	@ApiModelProperty("收款码url")
	private String codeUrl;
	@ApiModelProperty("审核状态(0为待审核,1为通过,2为拒绝)")
	private Integer codeState;
	@ApiModelProperty("逻辑删除变量 (0为删除,1为正常)")
	private Integer state;

	@ApiModelProperty("申请时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date applyTime;
	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;

	@ApiModelProperty("用户id")
	private Long userId;

}
